<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{{ title }}</title>
    {% for style in css %}
      <link href="/css/{{ style }}" rel="stylesheet" type="text/css"></link>
    {% endfor %}
    {% for js_file in js %}
      <script type="text/javascript" src="/js/{{ js_file }}"></script>
    {% endfor %}
    {% for code in inline_js %}
      <script type="text/javascript">{{ code }}</script>
    {% endfor %}
  </head>
  <body>
    <div id="wrapper">
      <div id="header">
        {% if user %}
          <div id="user">
            {{ user }}
          </div>
        {% endif %}
      </div>
      <div id="menu">
        <ul>
          {% for item in menu %}
          <li><a href="{{ item.1 }}">{{ item.0 }}</a></li>
          {% endfor %}
        </ul>
      </div>
      <div id="main">
        <div id="content">
          {% if errors %}
            <div id="errors">
              <ul>
                {% for error in errors %}
                  <li>{{ error }}</li>
                {% endfor %}
              </ul>
            </div>
          {% endif %}
          {{ content }}
        </div>
      </div>
    </div>
  </body>
</html>